package com.dgut.common.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author zyq
 * @Date 2022/4/18 12:55
 * @Description TODO
 * @Version 1.0
 **/
@Data
public class OrderSevenDayData {

    @JsonFormat(pattern = "MM月dd日")
    private Date day;

    private Long amount;

    private Long weight;

    private Integer count;


    public OrderSevenDayData(Long count, BigDecimal amount, BigDecimal weight) {
        this.count = count.intValue();
        this.amount = amount.longValue();
        this.weight = weight.longValue();
    }
}
